﻿using System.Collections.Generic;

namespace FlyRemote.Remote
{

    public static class RMFactory
    {
        private static IMemoryAssist _memory = new RMemoryDefault();


        private static IMemoryAssist _selected = _memory;


        private static List<IMemoryAssist> _list = new List<IMemoryAssist>();

        public static IList<IMemoryAssist> List
        {
            get
            {
                if (_list.Count == 0)
                {
                    _list.Add(_memory);
                }

                return _list;
            }

        }


        public static IMemoryAssist Default
        {
            get => _selected;
            set { _selected = value; }
        }



    }
}
